package com.letoken.platform.repo.app.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * app用户信息表
 * </p>
 *
 * @author 作者
 * @since 2022-11-14
 */
@Getter
@Setter
@TableName("app_user")
@ApiModel(value = "AppUser对象", description = "app用户信息表")
public class AppUser extends Model<AppUser> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键Id")
    @TableId(value = "id")
    private Integer id;

    @ApiModelProperty("用户名")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty("头像地址")
    @TableField("head_portrait")
    private String headPortrait;

    @ApiModelProperty("钱包地址")
    @TableField("wallet_address")
    private String walletAddress;

    @ApiModelProperty("邀请码")
    @TableField("invitation_code")
    private String invitationCode;


    @ApiModelProperty("邀请人id")
    @TableField("inviter_id")
    private Integer inviterId;

    @ApiModelProperty("钱包地址id")
    @TableField("address_id")
    private Integer addressId;

    @ApiModelProperty("token(顶号用)")
    @TableField("token")
    private String token;


    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


    @TableField("video_follows_count")
    private Integer videoFollowsCount;

    @TableField("video_fans_count")
    private Integer videoFansCount;

    @TableField("video_likes_count")
    private Integer videoLikesCount;
}
